package org.zjt.log.exception;

import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;

import java.io.IOException;

/**
 * DESC
 *
 * @author
 * @create 2017-06-20 下午1:41
 **/
public class MyInverseMapper extends Mapper<Text,Text,IntWritable,Text> {
    @Override
    protected void map(Text key, Text value, Context context) throws IOException, InterruptedException {
        //System.err.println(key.toString() + ":"+ value.toString());
        IntWritable k = new IntWritable(Integer.parseInt(value.toString()));
        context.write(k,key);
    }
}
